<?php 
/* SVN FILE: $Id$ */
/* CompanyLocation Test cases generated on: 2009-11-08 14:35:06 : 1257690906*/
App::import('Model', 'CompanyLocation');

class CompanyLocationTestCase extends CakeTestCase {
	var $CompanyLocation = null;
	var $fixtures = array('app.company_location', 'app.company');

	function startTest() {
		$this->CompanyLocation =& ClassRegistry::init('CompanyLocation');
	}

	function testCompanyLocationInstance() {
		$this->assertTrue(is_a($this->CompanyLocation, 'CompanyLocation'));
	}

	function testCompanyLocationFind() {
		$this->CompanyLocation->recursive = -1;
		$results = $this->CompanyLocation->find('first');
		$this->assertTrue(!empty($results));

		$expected = array('CompanyLocation' => array(
			'id'  => 1,
			'name'  => 'Lorem ipsum dolor sit amet'
		));
		$this->assertEqual($results, $expected);
	}
}
?>